# https://leetcode-cn.com/problems/sign-of-the-product-of-an-array/
from typing import List


class Solution:
    def arraySign(self, nums: List[int]) -> int:
        ret = 1
        for num in nums:
            ret *= num
        if ret == 0:
            return 0
        elif ret > 0:
            return 1
        else:
            return -1